package com.dlyk.service.impl;

import com.dlyk.bean.TProduct;
import com.dlyk.mapper.TProductMapper;
import com.dlyk.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductServiceImpl implements ProductService {

    @Autowired
    private TProductMapper productMapper;

    @Override
    public List<TProduct> getOnSaleProduct() {
        return productMapper.selectAllOnSaleProduct();
    }
}
